'use strict';
const Controller = require('egg').Controller;
class fpcyController extends Controller {
    // 获取发票代码查询发票种类返回数据
    async cxfpdmzl() {
            const { ctx, service } = this;
            const params = ctx.query;
            console.log(params)
            const result = await ctx.service.fpcy.cxfpdmzl(params);
            // console.log('result', result);
            ctx.session.data1 = result.data;
            ctx.body = result.data;
        }
        //获取参数数据
    async pslayer1() {
            const { ctx, service } = this;
            const params = ctx.query;
            const result = await ctx.service.fpcy.pslayer(params);
            ctx.session.data = result.data;
            ctx.body = result.data;
        }
        // 获取查验弹层页面返回数据
    async pslayer() {
        const { ctx, service } = this;
        const params = ctx.query;
        // const result = await ctx.service.fpcy.pslayer(params);
<<<<<<< HEAD
        ctx.logger.info('-------------------------------')
        ctx.logger.info(ctx.session.data.data[0], ctx.session.data1);
=======
>>>>>>> 3f67ce9be1dc4d50dde765bbc2d11cdfaa00c7ae
        await ctx.render('/fpcy/pslayer.html', { data: ctx.session.data.data[0], data1: ctx.session.data1 });
        // console.log(data);


    }


}
module.exports = fpcyController;